-- GENERATED SPELL FOR [Darbel Montrose] --


function spell0_2598(pUnit, Event) --@Banish,n/a--
pUnit:FullCastSpellOnTarget(8994,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2598', 16000, 1)
end

function spell1_2598(pUnit, Event) --@Curse of Weakness,Self--
pUnit:FullCastSpellOnTarget(12741,pUnit)
pUnit:RegisterEvent('Sorts_2598', 627, 1)
end

function spell2_2598(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2598', 3000, 1)
end

function Sorts_2598(pUnit, Event)
local choix_sorts_2598 = math.random(0, 2)
if choix_sorts_2598 == 0 then
pUnit:RegisterEvent('spell0_2598', 1, 1)
end
if choix_sorts_2598 == 1 then
pUnit:RegisterEvent('spell1_2598', 1, 1)
end
if choix_sorts_2598 == 2 then
pUnit:RegisterEvent('spell2_2598', 1, 1)
end
end

function mob2598_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2598', math.random(1500, 3000), 1)
end

function mob2598_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2598_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2598_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2598, 1, 'mob2598_Action')
RegisterUnitEvent(2598, 2, 'mob2598_Leave')
RegisterUnitEvent(2598, 3, 'mob2598_Kill')
RegisterUnitEvent(2598, 4, 'mob2598_Die')
